//
// Created by luolijun on 2021/10/31.
//

#ifndef STYLES_H
#define STYLES_H

#include <cstdint>
#include <map>
#include <string>

namespace falcon {

struct string_t {
    int32_t len;
    char* data;
};

struct Style {
    std::string name;
    union {
        int8_t int8_value;
        int16_t int16_value;
        int32_t int32_value;
        int64_t int64_value;
        double double_value;
        string_t string_value;
    };
};

struct Styles {
    std::string name;
    std::map<std::string, Style> styles;
};

} // namespace falcon
#endif // STYLES_H
